package ypmits.utils {

	/**
	 * @author Dave Lenz
	 */
	public class Logger {
		public static const ERROR : String = "ERROR";
		public static const WARNING : String = "WARNING";
		public static const NOTIFICATION : String = "NOTIFICATION";
		
		private var _logs : Array = [];

		
		public function log( string : String, loggertype : String ) : void {
			_logs.push( {string:string, type:loggertype} );
		}

		
		public function ttrace() : String {
			var s : String = "";
			var type : String = _logs[i]['type'];
			var string : String = _logs[i]['string'];
			for ( var i : int = 0; i < _logs.length; i++ ) {
				s+= "\n::"+type+": "+string;
			}
			return s;
		}
	}
}
